public class {{className}}Assembler {

    public static {{className}}RespVO entity2dto({{className}} entity) {
        if (entity == null) {
            return null;
        }

        {{className}}RespVO vo = new {{className}}RespVO();
        {{#fields}}
        vo.set{{propertyNameFirstUpper}}(entity.get{{propertyNameFirstUpper}}());
        {{/fields}}
        return vo;
    }

    public static {{className}} dto2entity({{className}}ReqDTO dto) {
        if (dto == null) {
            return null;
        }

        {{className}} entity = new {{className}}();
        {{#fields}}
        entity.set{{propertyNameFirstUpper}}(dto.get{{propertyNameFirstUpper}}());
        {{/fields}}
        return entity;
    }

    public static {{className}} dto2entity({{className}}ReqDTO dto, {{className}} entity) {
        if (dto == null || entity == null) {
            return entity;
        }

        {{#fields}}
        entity.set{{propertyNameFirstUpper}}(dto.get{{propertyNameFirstUpper}}());
        {{/fields}}
        return entity;
    }
}